Get premium membership and access questions with answers, video lessons as well as revision papers.

Given the following new-style C++ program, show how to change it into its old-style form.#include using namespace std;into f(into a);into main(){cout << f(10);return 0;}int f(int...

      

Given the following new-style C++ program, show how to change it into its old-style form.
#include
using namespace std;
into f(into a);
into main()
{
cout << f(10);
return 0;
}
int f(int a)
{
return a * 3.1416;
}

  

Answers


Davis
#include
int f(int a);
int main()
{
cout << f(10);
return 0;
}
int f(int a)
{
return a * 3.1416;
}
Githiari answered the question on May 5, 2018 at 17:38


Next: Create a function in C++ language called rev_str() that reverses a string.Overload rev_str() so it can be called with either one character array or two.When...
Previous: Write a program that uses C++ style I/O to prompt the user for a string and then display its length.

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions